﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册程序之成功页面</title>
</head>
<body>
<center>
    <%! int count = 5; %>
    [<%=session.getAttribute("name")%>]&nbsp恭喜您--注册成功！<br>
    <%=count%>秒后自动跳转界面
    <%
        response.setHeader("refresh", "1");
//    response.setHeader("refresh","5;URL=register.jsp");
        if (count == 0) {
            response.sendRedirect("register.jsp");
            session.removeAttribute("text");
            session.removeAttribute("name");
            count = 6;
        }
        count--;
    %>
</center>
</body>
</html>
